<%@ page language="java" pageEncoding="ISO-8859-1"%>

<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles" %>

<script type="text/javascript" src='../../scripts/general.js'> </script>

<html:form action="/registrarCliente" method="post">
<h2><bean:write name="registrarClienteForm" property="titulo"/></h2>

<html:hidden property="idDatos"/>
<fieldset><legend>Datos Generales</legend>
	<html:hidden property="busquedaMunicipios"/>
	<table width="100%">
		<tr height="7px"></tr>
		<tr>
			<td class="colIzq">
				<label>*Empresa: </label>
			</td>
			<td class="colDer" colspan="3">
				<html:text property="empresa" size="82" maxlength="45"/>
				<br/><span class="error"><html:errors property="errNombre"/></span>
			</td>
		</tr>
		<tr>
			<td class="colIzq">
				<label for="txt_contacto1">*Contacto 1: </label>
			</td>
			<td class="colDer">
				<html:text property="contacto1" maxlength="45"/>
				<br/><span class="error"><html:errors property="errContacto1"/></span>
			</td>
			<td class="colIzq">
				<label for="txt_tel1">*Tel&eacute;fono 1: </label>
			</td>
			<td class="colDer">
				<html:text property="telefono1" style="width:50%;" maxlength="20"/>
				<label for="txt_ext1">ext: </label>
				<html:text property="extTel1" size="3" maxlength="5"/>
				<br/><span class="error"><html:errors property="errTel1"/></span>
			</td>
		</tr>
		<tr>
			<td class="colIzq">
				<label for="txt_contacto2">Contacto 2: </label>
			</td>
			<td class="colDer">
				<html:text property="contacto2" maxlength="45"/>
			</td>
			<td class="colIzq">
				<label for="txt_tel2">Tel&eacute;fono 2: </label>
			</td>
			<td class="colDer">
				<html:text property="telefono2" style="width:50%;" maxlength="20"/>
				<label for="txt_ext2">ext: </label>
				<html:text property="extTel2" size="3" maxlength="5"/>
				<br><span class="error"><html:errors property="errTel2"/></span>
			</td>
		</tr>
		<tr>
			<td class="colIzq">
				<label for="txt_correo">*Correo: </label>
			</td>
			<td class="colDer">
				<html:text styleClass="min" property="correo" maxlength="45"/>
				<br/><span class="error"><html:errors property="errCorreo"/></span>
			</td>
			<td class="colIzq">
				<label for="txt_fax">Fax: </label>
			</td>
			<td class="colDer">
				<html:text property="fax" maxlength="45"/>
			</td>
		</tr>
		<tr>
			<td class="colIzq">
				<label for="txt_actividad">*Actividad: </label>
			</td>
			<td class="colDer">
				<html:text property="actividad" maxlength="45"/>
				<br/><span class="error"><html:errors property="errAct"/></span>
			</td>
			<td class="colIzq">
				<label for="sel_guarda">*Guardar como: </label>
			</td>
			<td class="colDer">
				<html:select property="estatus">
					<html:option value="0">Seleccione una opci&oacute;n</html:option>
					<html:optionsCollection name="estatusEmpresa" label="status" value="id"/>
				</html:select>
				<br/><span class="error"><html:errors property="errEstatus"/></span>
			</td>
		</tr>
		<tr>
			<td class="colIzq">
				<label for="txt_pagina">P&aacute;gina web: </label>
			</td>
			<td class="colDer">
				<html:text styleClass="min" property="pagWeb" maxlength="45"/>
			</td>
		</tr>
		<tr>
			<td class="colIzq" valign="top">
				<label for="txt_obs">Observaciones: </label>
			</td>
			<td class="colDer" colspan="3">
				<html:textarea property="observaciones" rows="3" />
			</td>
		</tr>
		<tr height="7px"></tr>
	</table>
</fieldset>
<br/>

<fieldset><legend>Datos Fiscales</legend>
	<table width="100%">
		<tr height="7px"></tr>
		<tr>
			<td class="colIzq">
				<label>RFC:</label>
			</td>
			<td class="colDer">
				<html:text property="rfc" maxlength="45"></html:text>
			</td>
			<td class="colIzq">
				<label>Pa&iacute;s</label>
			</td>
			<td class="colDer">
				<html:text property="pais" maxlength="45"></html:text>
			</td>
		</tr>
		<tr>
			<td class="colIzq">
				<label>Direcci&oacute;n:</label>
			</td>
			<td class="colDer">
				<html:text property="calleNum" maxlength="200"></html:text>
			</td>
			<td class="colIzq">
				<label>Estado:</label>
			</td>
			<td class="colDer">
				<html:select property="estados" onchange="obtenerMunicipiosRegistroClientes();">
					<html:option value="0">Seleccione una opci&oacute;n</html:option>
					<html:optionsCollection name="estados" label="nombre" value="id" />
				</html:select>
			</td>
		</tr>
		<tr>
			<td class="colIzq">
				<label>Colonia:</label>
			</td>
			<td class="colDer">
				<html:text property="colonia" maxlength="45"></html:text>
			</td>
			<td class="colIzq">
				<label>Municipio:</label>
			</td>
			<td class="colDer">
				<html:select property="municipios">
					<html:option value="0">Seleccione una opci&oacute;n</html:option>
					<html:optionsCollection name="municipios" label="nombre" value="id" />
				</html:select>
			</td>
		</tr>
		<tr>
			<td class="colIzq">
				<label>C&oacute;digo postal</label>
			</td>
			<td class="colDer">
				<html:text property="cp"></html:text>
			</td>
		</tr>
		<tr height="7px"></tr>
	</table>
</fieldset>
<br/>

<fieldset><legend>Contacto Entregas</legend>
	<table width="100%">
		<tr height="7px"></tr>
		<tr>
			<td class="colIzq">
				<label for="txt_nomEnt">Nombre: </label>
			</td>
			<td class="colDer">
				<html:text property="nomEntrega" maxlength="45"/>
			</td>
			<td class="colIzq">
				<label for="txt_correoEnt">Correo: </label>
			</td>
			<td class="colDer">
				<html:text styleClass="min" property="correoEntrega" maxlength="45"/>
				<br/><span class="error"><html:errors property="errMailEnt"/></span>
			</td>
		</tr>
		<tr>
			<td class="colIzq">
				<label for="txt_telEnt">Tel&eacute;fono: </label>
			</td>
			<td class="colDer">
				<html:text property="telEntrega" maxlength="45"/>
			</td>
		</tr>
		<tr height="7px"></tr>
	</table>
</fieldset>
<br/>

<fieldset><legend>Contacto Pagos</legend>
	<table width="100%">
		<tr height="7px"></tr>
		<tr>
			<td class="colIzq">
				<label for="txt_nomPago">Nombre: </label>
			</td>
			<td class="colDer">
				<html:text property="nomPago" maxlength="45"/>
			</td>
			<td class="colIzq">
				<label for="txt_correoPago">Correo: </label>
			</td>
			<td class="colDer">
				<html:text styleClass="min" property="correoPago" maxlength="45"/>
				<br/><span class="error"><html:errors property="errMailPago"/></span>
			</td>
		</tr>
		<tr>
			<td class="colIzq">
				<label for="txt_telPago">Tel&eacute;fono: </label>
			</td>
			<td class="colDer">
				<html:text property="telPago" maxlength="45"/>
			</td>
		</tr>
		<tr height="7px"></tr>
	</table>
</fieldset>
<br/>
<div align="center">
 	<html:submit property="boton"><bean:write name="registrarClienteForm" property="boton"/></html:submit>
	<html:submit value="CANCELAR" property="boton"/>
</div>
</html:form>